package foundation.pcmUtil;

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;

public class SimulatorMouse {
	private static Robot robot =null;
	public static void runS4c(){
		try {
			if (robot == null) {
			}
			robot = new Robot();
		} catch (AWTException e) {
			e.printStackTrace();
		}
		
		robot.keyPress(KeyEvent.VK_CONTROL);
		robot.keyPress(KeyEvent.VK_ALT);
		robot.keyPress(KeyEvent.VK_0);
		robot.keyRelease(KeyEvent.VK_0);
		robot.keyRelease(KeyEvent.VK_ALT);
		robot.keyRelease(KeyEvent.VK_CONTROL);
		
		robot.mouseMove(1150, 750);
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		robot.mousePress(KeyEvent.BUTTON1_MASK);
		robot.mouseRelease(KeyEvent.BUTTON1_MASK);
	}
	
	public static void main(String[] args){
		runS4c();
	}
}
